package com.HomeWorkhsp.Chapter08.extends_.exercise;

/**
Enjoy programming!!!
Time: 2021/11/20 -  15:04
*/
class Computer{
    private String CPU;
    private int RAM;
    private int Harddisk;

    public Computer(){}

    public String getDetails(){
        return "cpu=" + CPU + " ram=" + RAM + " harddisk=" + Harddisk;
    }

    public Computer(String cpu, int ram, int harddisk){
        this.CPU = cpu;
        this.Harddisk = harddisk;
        this.RAM = ram;
    }

    public String getCPU(){
        return CPU;
    }

    public void setCPU(String cpu){
        this.CPU = cpu;

    }

    public int getRAM() {
        return RAM;
    }

    public void setRAM(int RAM) {
        this.RAM = RAM;
    }

    public int getHarddisk() {
        return Harddisk;
    }

    public void setHarddisk(int harddisk) {
        Harddisk = harddisk;
    }
}
